// class Animal {
//   public name
//   public constructor(name) {
//     this.name = name
//   }
// }
// let a = new Animal('Jack')
// console.log(a.name) // Jack
// a.name = 'Tom'
// console.log(a.name) // Tom
var Animal = /** @class */ (function () {
    function Animal(name) {
        this.name = name;
    }
    return Animal;
}());
var a = new Animal('Jack');
console.log(a.name);
a.name = 'Tom';
console.log(a.name);
